Skip to content

Update to Typescript 6 / Jest 29#202

Open
alexdunae wants to merge 15 commits into
mainfrom
alex/typescript6
Open

Update to Typescript 6 / Jest 29#202
alexdunae wants to merge 15 commits into
mainfrom
alex/typescript6

Conversation

@alexdunae
Copy link
Copy Markdown
Contributor

@alexdunae alexdunae commented May 13, 2026

Prep for adding Stratakit components and general modernization.

Stratakit's optional render prop was being seen as required in TS 4, which is what prompted me to start this update.

  • Update to Typescript 6 / Jest 29
  • extracted a tsconfig.base.json to simplify config
  • moved Jest TS config into jest.config.js - this lets us remove types: [node, jest] from the browser-targeting tsconfig files
  • switched to moduleResolution: "bundler" since the previous node option is deprecated
  • updated a few SVG imports to handle moduleResolution: "bundler"
  • disabled Storybook's reactDogen for now (this shows TS types on Storybook) - it is not compatible with TS 6 but can be re-enabled when we update Storybook in Upgrade to Storybook 7 #108 - Storybook still shows props, just not with the full TS typings

This PR is based on #203 so CI isn't running automatically. Here are the manual runs... https://github.com/iTwin/admin-components-react/actions?query=branch%3Aalex%2Ftypescript6

alexdunae added 2 commits May 15, 2026 09:22
It is pinned to @typescript-eslint/parser 5.x and blocks us from upgrading Typescript.

The whole CRA project is deprecated anyways

https://github.com/react/create-react-app/blob/main/packages/eslint-config-react-app/package.json

We also remove eslint-plugin-flowtype since we don't use Flow at all
@alexdunae alexdunae changed the base branch from main to alex/eslint-cra May 15, 2026 16:38
@alexdunae alexdunae marked this pull request as ready for review May 15, 2026 20:27
@veekeys
Copy link
Copy Markdown
Member

veekeys commented May 18, 2026

What do you mean by "adding stratakit components"?
If you plan to replace whole iTwinUI with StrataKit, that cannot be done as these components are used in BIC.

Comment thread packages/modules/create-imodel/package.json Outdated
Comment thread common/changes/@itwin/create-imodel-react/alex-typescript6_2026-05-13-20-55.json Outdated
@alexdunae
Copy link
Copy Markdown
Contributor Author

What do you mean by "adding stratakit components"? If you plan to replace whole iTwinUI with StrataKit, that cannot be done as these components are used in BIC.

The plan is to add MUI components in parallel to existing iTwinUI components. So consumers will be able to import something like @itwin/admin-components-react/mui/iTwinGrid

Base automatically changed from alex/eslint-cra to main May 27, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants